# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import Comment
from blogApp.custom_site import custom_site



@admin.register(Comment, site=custom_site)
class CommentAdmin(admin.ModelAdmin):
    # 配置列表页面展示的字段
    list_display = ('target', 'nickname', 'content', 'website', 'created_time')
    # 后台管理显示的字段
    fields = ('target', 'nickname', 'content', 'website')